package com.trtan.hr.dao;

import com.trtan.hr.pojo.Hr;
import com.trtan.hr.pojo.Menu;
import com.trtan.hr.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface HrDao {
    Long getTotal(String name);
    Hr loadUserByUsername(String username);
    List<Role> getUserRoleByUid(Integer id);
    List<Hr> queryAllHr(@Param("page") Integer page, @Param("size") Integer size, @Param("name") String username);
    int deleteHrById(@Param("id") Integer id);
    int addHr(Hr hr);
    int modifyHr(Hr hr);

}
